﻿@model IEnumerable<VOD.Models.VideoArea>

@{
    ViewBag.Title = "地区列表";
}

<h1>地区列表</h1>
<table>
    <tr class="thead">
        <th>ID</th>
        <th>
            地区
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    if (item.AreaID == 1) { continue; }
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.AreaID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AreaName)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id = item.AreaID }) |
            @Html.ActionLink("删除", "Delete", new { id = item.AreaID })
        </td>
    </tr>
}

</table>
